package day0724;

import java.util.Arrays;

public class Test7 {
    public static void main(String[] args) {
        char[] a={'7', 'D', 'n', 'O','L', 'Y'};
        for (int i = 0; i < a.length/2; i++) {
            char t=a[i];
            a[i]=a[a.length-1-i];
            a[a.length-1-i]=t;
        }
        System.out.println(Arrays.toString(a));
    }
}
